﻿using Core.Setting;

namespace Core
{
    public class SettingSystem : Entity, IAwake
    {
        public ResolutionSetting Resolution { get; private set; }
        public ScreenSetting Screen { get; private set; }
        public FrameRateSetting FrameRate { get; private set; }

        public LanguageSetting Language { get; private set; }
        public MusicSetting Music { get; private set; }
        public SoundSetting Sound { get; private set; }

        public void Awake()
        {
            Resolution = Add<ResolutionSetting>();
            Screen = Add<ScreenSetting>();
            FrameRate = Add<FrameRateSetting>();

            Language = Add<LanguageSetting>();
            Music = Add<MusicSetting>();
            Sound = Add<SoundSetting>();
        }
    }
}